package com.gitee.ayezs;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.ayezs.annotation.Default;
import com.gitee.ayezs.annotation.wrapper.Eq;
import com.gitee.ayezs.annotation.wrapper.Ge;
import com.gitee.ayezs.annotation.wrapper.Like;

import java.io.Serializable;

/**
 *
 * @author 庞冬皓
 * @since 2022-01-02
 */
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @Like(group = {Group1.class})
    private String name;
    @Ge
    private Integer age;
    @Eq
    private Integer sex;

    public Integer getId() {
        return id;
    }

    public User setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public User setName(String name) {
        this.name = name;
        return this;
    }

    public Integer getAge() {
        return age;
    }

    public User setAge(Integer age) {
        this.age = age;
        return this;
    }

    public Integer getSex() {
        return sex;
    }

    public User setSex(Integer sex) {
        this.sex = sex;
        return this;
    }
}
